package com.info.zhiduoduo.core.service;

import com.info.zhiduoduo.repository.entity.marketingcooperative.MarketingCooperativePosterConfig;

import java.io.InputStream;
import java.io.OutputStream;

public interface CoreMarketingCooperativeService {

	/**
	 * @param srcIs  海报模板图片输入流
	 * @param os     生成的海报图片输出流
	 * @param poster 海报配置信息
	 * @param partnerid 合伙人id
	 */
	void generatePoster(InputStream srcIs, OutputStream os, MarketingCooperativePosterConfig poster, int partnerid) throws Exception;

	/**
	 * 给合伙人生成海报图片
	 *
	 * @param partnerid
	 * @param poster
	 * @return
	 */
	String generatePosterImg(int partnerid, MarketingCooperativePosterConfig poster);
}
